git-annex.git
13 months ago(no commit message)
jnkl [Sun, 23 Feb 2025 20:55:22 +0000 (20:55 +0000)]

13 months ago(no commit message)
jnkl [Sun, 23 Feb 2025 20:54:56 +0000 (20:54 +0000)]

13 months ago(no commit message)
jnkl [Sun, 23 Feb 2025 20:48:35 +0000 (20:48 +0000)]

13 months ago(no commit message)
jnkl [Sun, 23 Feb 2025 20:25:08 +0000 (20:25 +0000)]

13 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Sat, 22 Feb 2025 14:04:58 +0000 (10:04 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

13 months agodistribits 2025
Joey Hess [Sat, 22 Feb 2025 14:04:28 +0000 (10:04 -0400)]
distribits 2025

13 months ago(no commit message)
Atemu [Sat, 22 Feb 2025 10:51:45 +0000 (10:51 +0000)]

13 months ago(no commit message)
Atemu [Sat, 22 Feb 2025 10:50:55 +0000 (10:50 +0000)]

13 months ago(no commit message)
Atemu [Sat, 22 Feb 2025 10:48:23 +0000 (10:48 +0000)]

13 months agofix build with old bytestring
Joey Hess [Fri, 21 Feb 2025 19:34:23 +0000 (15:34 -0400)]
fix build with old bytestring

bytestring-0.11.3.0 is the first to have ShortByteString singleton.
Unsure about what version added concat, but mconcat = concat.

13 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 21 Feb 2025 19:31:20 +0000 (15:31 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

13 months agomap --json wishlist
yarikoptic [Fri, 21 Feb 2025 15:31:35 +0000 (15:31 +0000)]
map --json wishlist

13 months agoinitial report about map infinite loop
yarikoptic [Fri, 21 Feb 2025 15:28:27 +0000 (15:28 +0000)]
initial report about map infinite loop

13 months agoupdate
Joey Hess [Thu, 20 Feb 2025 17:27:59 +0000 (13:27 -0400)]
update

14 months agoAdded a comment
lell [Thu, 20 Feb 2025 11:00:05 +0000 (11:00 +0000)]
Added a comment

14 months agoAdded a comment: Confused
Spencer [Wed, 19 Feb 2025 23:22:46 +0000 (23:22 +0000)]
Added a comment: Confused

14 months agoAdded a comment: For Those Who Stumble Here
Spencer [Wed, 19 Feb 2025 23:08:42 +0000 (23:08 +0000)]
Added a comment: For Those Who Stumble Here

14 months agoupdate
Joey Hess [Wed, 19 Feb 2025 20:03:34 +0000 (16:03 -0400)]
update

14 months agocomments
Joey Hess [Wed, 19 Feb 2025 19:14:52 +0000 (15:14 -0400)]
comments

14 months agoadd REPRODUCIBLE
Joey Hess [Wed, 19 Feb 2025 18:16:36 +0000 (14:16 -0400)]
add REPRODUCIBLE

14 months agooptional and required inputs and some other changes
Joey Hess [Wed, 19 Feb 2025 16:32:35 +0000 (12:32 -0400)]
optional and required inputs and some other changes

14 months agoimproved draft design
Joey Hess [Tue, 18 Feb 2025 19:46:47 +0000 (15:46 -0400)]
improved draft design

14 months agoimprove apiurl description
Joey Hess [Tue, 18 Feb 2025 18:46:10 +0000 (14:46 -0400)]
improve apiurl description

14 months agogit-lfs apiurl parameter
Joey Hess [Tue, 18 Feb 2025 18:11:11 +0000 (14:11 -0400)]
git-lfs apiurl parameter

git-lfs: Added an optional apiurl parameter.

This needs version 1.2.5 of the haskell git-lfs library to be used.
stack.yaml updated to use that.

Note that git-annex enableremote can be used to add apiurl= to an existing
git-lfs special remote. To allow unsetting the apiurl and instead use
the probed url, support enableremote with apiurl set to an empty string.

Sponsored-by: Luke T. Shumaker
14 months agoAdded a comment: Faced same issue for long time
sharad [Mon, 17 Feb 2025 19:30:28 +0000 (19:30 +0000)]
Added a comment: Faced same issue for long time

14 months agoOsPath build fix
Joey Hess [Mon, 17 Feb 2025 18:56:56 +0000 (14:56 -0400)]
OsPath build fix

14 months agoOsPath build fix
Joey Hess [Mon, 17 Feb 2025 18:46:43 +0000 (14:46 -0400)]
OsPath build fix

14 months agoOSX build fix
Joey Hess [Mon, 17 Feb 2025 18:06:06 +0000 (14:06 -0400)]
OSX build fix

14 months agoOSX build fixes
Joey Hess [Mon, 17 Feb 2025 18:05:19 +0000 (14:05 -0400)]
OSX build fixes

14 months agoOSX build fixes
Joey Hess [Mon, 17 Feb 2025 18:04:08 +0000 (14:04 -0400)]
OSX build fixes

14 months agoOSX build fix
Joey Hess [Mon, 17 Feb 2025 18:01:54 +0000 (14:01 -0400)]
OSX build fix

14 months agoOSX build fixes
Joey Hess [Mon, 17 Feb 2025 17:59:52 +0000 (13:59 -0400)]
OSX build fixes

14 months agoMerge branch 'ospath'
Joey Hess [Mon, 17 Feb 2025 15:58:20 +0000 (11:58 -0400)]
Merge branch 'ospath'

14 months agoAdded a comment
datamanager [Sat, 15 Feb 2025 21:46:33 +0000 (21:46 +0000)]
Added a comment

14 months ago(no commit message)
puck [Sat, 15 Feb 2025 10:36:03 +0000 (10:36 +0000)]

14 months agoOsPath conversion for OSXMkLibs
Joey Hess [Fri, 14 Feb 2025 20:53:00 +0000 (16:53 -0400)]
OsPath conversion for OSXMkLibs

14 months agoMerge branch 'master' into ospath
Joey Hess [Fri, 14 Feb 2025 20:28:43 +0000 (16:28 -0400)]
Merge branch 'master' into ospath

14 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Fri, 14 Feb 2025 19:41:23 +0000 (15:41 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

14 months agofurther fix OSX packaging program builds
Joey Hess [Fri, 14 Feb 2025 19:40:48 +0000 (15:40 -0400)]
further fix OSX packaging program builds

Broken by commit e5be81f8d4bf7f6cef5ac4ff0b059efbdf6055ea

14 months agomore details on my issues
anarcat [Fri, 14 Feb 2025 17:54:24 +0000 (17:54 +0000)]
more details on my issues

14 months agoAdded a comment: similar topic
anarcat [Fri, 14 Feb 2025 17:51:29 +0000 (17:51 +0000)]
Added a comment: similar topic

14 months agoAdded a comment: similar topic
anarcat [Fri, 14 Feb 2025 17:47:02 +0000 (17:47 +0000)]
Added a comment: similar topic

14 months agodraft
Joey Hess [Thu, 13 Feb 2025 20:12:07 +0000 (16:12 -0400)]
draft

14 months agocomment
Joey Hess [Thu, 13 Feb 2025 17:51:21 +0000 (13:51 -0400)]
comment

14 months agocomment
Joey Hess [Thu, 13 Feb 2025 17:01:15 +0000 (13:01 -0400)]
comment

14 months agoOsPath conversion of DistributionUpdate
Joey Hess [Wed, 12 Feb 2025 17:27:34 +0000 (13:27 -0400)]
OsPath conversion of DistributionUpdate

14 months agopush down OsPath into CopyFile
Joey Hess [Wed, 12 Feb 2025 17:11:27 +0000 (13:11 -0400)]
push down OsPath into CopyFile

14 months agostop exporting RawFilePath
Joey Hess [Wed, 12 Feb 2025 16:59:30 +0000 (12:59 -0400)]
stop exporting RawFilePath

14 months agoavoid head warnings with recent ghc versions
Joey Hess [Wed, 12 Feb 2025 16:43:03 +0000 (12:43 -0400)]
avoid head warnings with recent ghc versions

14 months agoremove the git-union-merge command
Joey Hess [Wed, 12 Feb 2025 16:37:36 +0000 (12:37 -0400)]
remove the git-union-merge command

This has never been built and shipped as part of git-annex,
and including it as a pedagolical example in
the source code doesn't have much benefit. The program was not currently
buildable after recent OsPath changes.

Of course, Git/UnionMerge.hs is still available and can be used.

14 months agofix description of ParallelBuild
Joey Hess [Wed, 12 Feb 2025 16:32:22 +0000 (12:32 -0400)]
fix description of ParallelBuild

14 months agoRevert "stack.yaml: temporarily build with older ghc"
Joey Hess [Tue, 11 Feb 2025 20:57:32 +0000 (16:57 -0400)]
Revert "stack.yaml: temporarily build with older ghc"

This reverts commit 2f9a384e48cb4407e6b5b70d1db6efa593654f0e.

14 months agoMerge branch 'master' into ospath
Joey Hess [Tue, 11 Feb 2025 20:56:17 +0000 (16:56 -0400)]
Merge branch 'master' into ospath

14 months agofix windows and OSX packaging program builds
Joey Hess [Tue, 11 Feb 2025 20:53:01 +0000 (16:53 -0400)]
fix windows and OSX packaging program builds

Broken by commit e5be81f8d4bf7f6cef5ac4ff0b059efbdf6055ea

14 months agoMerge branch 'ospathwin2' into ospath
Joey Hess [Tue, 11 Feb 2025 20:46:01 +0000 (16:46 -0400)]
Merge branch 'ospathwin2' into ospath

14 months agofix convertToWindowsNativeNameSpace bug
Joey Hess [Wed, 12 Feb 2025 04:37:40 +0000 (20:37 -0800)]
fix convertToWindowsNativeNameSpace bug

This fixes a test suite failure. The OsPath conversion made that be used
in more places, including addurl, which exposed an existing bug.

14 months agoavoid build warning on windows
Joey Hess [Tue, 11 Feb 2025 20:30:47 +0000 (16:30 -0400)]
avoid build warning on windows

14 months agoOsPath transition Windows build fixes
Joey Hess [Wed, 12 Feb 2025 03:23:02 +0000 (19:23 -0800)]
OsPath transition Windows build fixes

This gets it building on Windows again, with 1 test suite failure
(addurl).

Sponsored-by: Kevin Mueller
14 months agofix comment
Joey Hess [Tue, 11 Feb 2025 18:07:01 +0000 (14:07 -0400)]
fix comment

14 months agoimproved OsPath conversion
Joey Hess [Tue, 11 Feb 2025 18:05:56 +0000 (14:05 -0400)]
improved OsPath conversion

14 months agomore OsPath conversion
Joey Hess [Tue, 11 Feb 2025 18:03:20 +0000 (14:03 -0400)]
more OsPath conversion

this avoids 1 copy

14 months agomore OsPath conversion
Joey Hess [Tue, 11 Feb 2025 18:00:01 +0000 (14:00 -0400)]
more OsPath conversion

14 months agouse to/fromOsPath
Joey Hess [Tue, 11 Feb 2025 17:54:17 +0000 (13:54 -0400)]
use to/fromOsPath

Just to reduce the number of from/toRawFilePath calls, which I would
like to minimize.

In this build path, the two are the same though.

14 months agoremove unused functions from Utility.RawFilePath
Joey Hess [Tue, 11 Feb 2025 17:49:17 +0000 (13:49 -0400)]
remove unused functions from Utility.RawFilePath

14 months agoreplace removeLink with removeFile
Joey Hess [Tue, 11 Feb 2025 17:41:26 +0000 (13:41 -0400)]
replace removeLink with removeFile

same reasoning as in commit 5cc8d9d03b53f2e43d51e4f612f423178519e824

14 months agoupdate todo
Joey Hess [Tue, 11 Feb 2025 17:01:13 +0000 (13:01 -0400)]
update todo

14 months agoreplace R.doesPathExist with doesPathExist
Joey Hess [Tue, 11 Feb 2025 16:46:14 +0000 (12:46 -0400)]
replace R.doesPathExist with doesPathExist

Equivilant, just avoids some ugliness.

14 months agotest suite now passes after OsPath conversion
Joey Hess [Tue, 11 Feb 2025 16:37:09 +0000 (12:37 -0400)]
test suite now passes after OsPath conversion

The test suite was failing because of a bug in the Database/* modules.
I had replaced doesPathExist with doesDirectoryExist, but it was
checking the database file.

I have audited commit f1ba21d698c908ad84c08bce24fbbc376190fe83 for
other changes to doesPathExist, and checked that doesDirectoryExist and
doesFileExist were used correctly.

The only change I found is in youtubeDl', where it used to return
directories that might have been created by youtube-dl. But it was
supposed to return media files, so changing it to use doesFileExist is
actually an improvement. Although only of theoretical benefit.

Note that it would actually be possible to keep using doesPathExist,
there is a version of that for OsPath as well. But the rest of these
changes seem safe.

Sponsored-by: Nicholas Golder-Manning
14 months agoOsPath conversion of linuxstandalone builder
Joey Hess [Tue, 11 Feb 2025 16:12:27 +0000 (12:12 -0400)]
OsPath conversion of linuxstandalone builder

Sponsored-by: Joshua Antonishen
14 months agoMerge branch 'master' of ssh://git-annex.branchable.com
Joey Hess [Mon, 10 Feb 2025 21:23:31 +0000 (17:23 -0400)]
Merge branch 'master' of ssh://git-annex.branchable.com

14 months agostack.yaml: temporarily build with older ghc
Joey Hess [Mon, 10 Feb 2025 21:22:29 +0000 (17:22 -0400)]
stack.yaml: temporarily build with older ghc

And without ospath build flag as a consequence.

This is a temporary fix to build failures on the github CI for Windows
and OSX, which use too old a version of stack to support the nightly
ghc.

I have sent a patch to those workflows, and after it is applied, this
can be reverted.

14 months agoOsPath build flag no longer depends on filepath-bytestring
Joey Hess [Mon, 10 Feb 2025 20:25:31 +0000 (16:25 -0400)]
OsPath build flag no longer depends on filepath-bytestring

However, filepath-bytestring is still in Setup-Depends.
That's because Utility.OsPath uses it when not built with OsPath.
It would be maybe possible to make Utility.OsPath fall back to using
filepath, and eliminate that dependency too, but it would mean either
wrapping all of System.FilePath's functions, or using `type OsPath = FilePath`

Annex.Import uses ifdefs to avoid converting back to FilePath when not
on windows. On windows it's a bit slower due to that conversion.
Utility.Path.Windows.convertToWindowsNativeNamespace got a bit
slower too, but not really worth optimising I think.

Note that importing Utility.FileSystemEncoding at the same time as
System.Posix.ByteString will result in conflicting definitions for
RawFilePath. filepath-bytestring avoids that by importing RawFilePath
from System.Posix.ByteString, but that's not possible in
Utility.FileSystemEncoding, since Setup-Depends does not include unix.
This turned out not to affect any code in git-annex though.

Sponsored-by: Leon Schuermann
14 months agomerging the two lines of OsPath conversion commits
Joey Hess [Mon, 10 Feb 2025 19:40:04 +0000 (15:40 -0400)]
merging the two lines of OsPath conversion commits

14 months agoOsPath conversion
Joey Hess [Mon, 10 Feb 2025 19:24:28 +0000 (15:24 -0400)]
OsPath conversion

While some RawFilePath and FilePath remain, this converts most of
git-annex to using OsPath.

(When built without the OsPath build flag, is falls back to using
type OsPath = RawFilePath.)

The goals are
1) improved performance by using OsPath end-to-end when possible
2) potentially avoiding memory use problems caused by pinned strict
   ByteString, since OsPath uses ShortByteString
3) eventually eliminating the filepath-bytestring dependency so I don't
   need to keep maintaining that library
   (this doesn't get all the way, but close)
4) generally improved type safety, since OsPath is a newtype, while
   FilePath and RawFilePath are just type aliaes.

This is the result of a type checker driven process. I started by
converting from System.Directory to System.Directory.OsPath, and from
System.FilePath to System.OsPath. Then I fixed all the compile errors,
which took 3 weeks of work.

Unfortunately, there are several test suite failures at this point.
Also, it only has been built on linux, on windows and OSX there are
probably ifdefs whose code still needs to be converted.

Note that there is a parallel line of commits, starting with
05bdce328d890cbac68a8627aaae262078a8290a
which is the incremental progress as I worked on this. It will be merged
with this commit. In some cases, commits in that line explain in more
details the reasons for some specific changes.

14 months agofix reversions
Joey Hess [Mon, 10 Feb 2025 19:18:10 +0000 (15:18 -0400)]
fix reversions

Oops, in 0b9e9cbf70c6375c8ccccdfac95b5e04ca09f891 I lost takeDirectory
in several places.

With this fixed, the test suite no longer utterly blows up, but still
fails in 7 places due to other bugs introduced in the OsPath conversion.

Sponsored-by: Graham Spencer
14 months agomore OsPath conversion (749/749)
Joey Hess [Mon, 10 Feb 2025 18:57:25 +0000 (14:57 -0400)]
more OsPath conversion (749/749)

Builds with and without OsPath build flag.

Unfortunately, the test suite fails.

Sponsored-by: unqueued on Patreon
14 months agodon't export pack and unpack
Joey Hess [Mon, 10 Feb 2025 16:33:21 +0000 (12:33 -0400)]
don't export pack and unpack

These are too widly used for other things to make sense to export OsPath
versions of them. And OsString also provides them and gets imported
qualified when needed.

14 months agomore OsPath conversion (658/749)
Joey Hess [Sat, 8 Feb 2025 19:17:33 +0000 (15:17 -0400)]
more OsPath conversion (658/749)

At this point the test suite builds, and mostly the assistant is left.

Sponsored-by: unqueued
14 months ago(no commit message)
thk [Sat, 8 Feb 2025 06:59:34 +0000 (06:59 +0000)]

14 months agoAdded a comment: iroh
thk [Sat, 8 Feb 2025 06:56:32 +0000 (06:56 +0000)]
Added a comment: iroh

14 months agomore OsPath conversion (650/749)
Joey Hess [Fri, 7 Feb 2025 21:03:31 +0000 (17:03 -0400)]
more OsPath conversion (650/749)

Sponsored-by: Nicholas Golder-Manning
14 months agomore OsPath conversion (639/749)
Joey Hess [Fri, 7 Feb 2025 20:07:05 +0000 (16:07 -0400)]
more OsPath conversion (639/749)

Sponsored-by: k0ld
14 months agomore OsPath conversion (602/749)
Joey Hess [Fri, 7 Feb 2025 18:46:11 +0000 (14:46 -0400)]
more OsPath conversion (602/749)

Sponsored-by: Brock Spratlen
14 months agomore OsPath conversion (572/749)
Joey Hess [Thu, 6 Feb 2025 20:18:52 +0000 (16:18 -0400)]
more OsPath conversion (572/749)

Sponsored-by: Jack Hill
14 months agoRevert "update"
Joey Hess [Thu, 6 Feb 2025 15:42:49 +0000 (11:42 -0400)]
Revert "update"

This reverts commit f5c6dc7cfb4ff9d455fe67081f346b65a8803e68.

14 months agoRevert "update"
Joey Hess [Thu, 6 Feb 2025 15:41:37 +0000 (11:41 -0400)]
Revert "update"

This reverts commit 34646124457004f693b19abdf0c6eaf15f833897.

14 months agoupdate
Joey Hess [Thu, 6 Feb 2025 15:41:10 +0000 (11:41 -0400)]
update

14 months agoupdate
Joey Hess [Thu, 6 Feb 2025 15:40:03 +0000 (11:40 -0400)]
update

14 months agomore OsPath conversion (542/749)
Joey Hess [Thu, 6 Feb 2025 15:38:14 +0000 (11:38 -0400)]
more OsPath conversion (542/749)

Sponsored-by: Luke T. Shumaker
14 months agomore OsPath conversion (520/749)
Joey Hess [Wed, 5 Feb 2025 19:07:59 +0000 (15:07 -0400)]
more OsPath conversion (520/749)

Sponsored-by: mycroft
14 months agoMerge branch 'master' into ospath
Joey Hess [Wed, 5 Feb 2025 17:31:07 +0000 (13:31 -0400)]
Merge branch 'master' into ospath

14 months agomore OsPath conversion (502/749)
Joey Hess [Wed, 5 Feb 2025 17:29:58 +0000 (13:29 -0400)]
more OsPath conversion (502/749)

Sponsored-by: Kevin Mueller on Patreon
14 months agomore OsPath conversion (475/749)
Joey Hess [Wed, 5 Feb 2025 16:14:56 +0000 (12:14 -0400)]
more OsPath conversion (475/749)

Sponsored-by: Nicholas Golder-Manning
14 months agoOsPath conversion of Annex.YouTubeDl
Joey Hess [Wed, 5 Feb 2025 15:56:26 +0000 (11:56 -0400)]
OsPath conversion of Annex.YouTubeDl

The change of R.doesPathExist to doesFileExist I think fixes a reversion
introduced in commit 1ceece3108f03badcca0d9c64cd287f9352656b3. Before
that commit, it was doesFileExist, and I assume to point is that this is
only supposed to return files, not any subdirectories that yt-dlp might
create while running.

14 months agoOsPath conversion of Remote.Adb
Joey Hess [Wed, 5 Feb 2025 15:14:45 +0000 (11:14 -0400)]
OsPath conversion of Remote.Adb

Note that the additional use of System.FilePath.Posix likely fixes a
problem if this were used on windows. The AndroidPath uses / directory
separators. Before this, on windows, \ would have been used.

The change to newtype AndroidPath is only documentation.

14 months agomore OsPath conversion
Joey Hess [Tue, 4 Feb 2025 20:09:47 +0000 (16:09 -0400)]
more OsPath conversion

Sponsored-by: Leon Schuermann
14 months agomore OsPath conversion (464/749)
Joey Hess [Tue, 4 Feb 2025 17:35:17 +0000 (13:35 -0400)]
more OsPath conversion (464/749)

Sponsored-by: unqueued
14 months ago(no commit message)
lell [Tue, 4 Feb 2025 09:35:42 +0000 (09:35 +0000)]

14 months agomore OsPath conversion
Joey Hess [Mon, 3 Feb 2025 19:16:42 +0000 (15:16 -0400)]
more OsPath conversion

Sponsored-by: Graham Spencer
14 months agoreplace removeLink with removeFile
Joey Hess [Sun, 2 Feb 2025 18:16:58 +0000 (14:16 -0400)]
replace removeLink with removeFile

removeFile calls unlink so removes anything not a directory. So these
are replaceable in order to convert to OsPath.